const express=require("express");
const router=express.Router();

const userController = require('../controller/userController');
const contextController = require('../controller/contextController');

router.post('/login.do',userController.login);
router.post('/register.do',userController.register);

router.get('/checkUsername.do',userController.checkUsername);
router.get('/checkEmail.do',userController.checkEmail);

router.get('/getAllContext.do',contextController.getAllContext);

module.exports=router;